package OrderService

import "github.com/gogf/gf/frame/g"

// 关闭未支付订单
func AddCloseNoPayOrder(orderId int) {
	/*hash := guid.S()
	g.Redis().Do("SETEX", "CloseNoPayOrder:"+hash, 60, orderId)
	g.Client().Timeout(6*time.Second).ContentJson().GetContent(
		g.Cfg().GetString("back_api.CloseNoPayOrder"), g.Map{
			"hash": hash,
		})*/

	g.Redis("queue").Conn().Do("PUBLISH", "CloseNoPayOrder", orderId)
}
